package com.offcn.service;

import com.offcn.dao.MovieDao;
import com.offcn.pojo.Movie;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class MovieService {
    @Autowired
    private MovieDao movieDao;

    @Value("${server.port}")
    private String port;

    public Movie getMovie(){
        System.out.println("当前电影提供服务的端口为："+port);
        return movieDao.getMovie();
    }
}
